﻿using System;
using System.Collections.Generic;
using System.Text;

namespace AutoParkingManagement
{
    public class BLLCardType:IBLLCardType
    {
        #region Private members
        IDALCardType _dalCardType;
        #endregion

        #region Properties
        public IDALCardType DALCardType
        {
            get
            {
                if (_dalCardType == null)
                {
                    _dalCardType = Factory<IDALCardType>.CreateInstance();
                }
                return _dalCardType;
            }
        }
        #endregion

        #region IBLLCardType Members

        public IList<CardType> GetListCardType(CardType cardType)
        {
            return DALCardType.GetListCardType(cardType);
        }

        #endregion
    }
}
